package main;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

// Nikolas Wolfe
// 4/13/09
// CIS 4930
// Game of Life 2

/* =============================================================================
 * Returns a time stamp 
 */
public class Timestamp
{
	private static final Calendar calendar = Calendar.getInstance();
	private static final SimpleDateFormat formatter = new SimpleDateFormat( "yyyyMM.dd_HHmm.ss" );
	
	public static String now()
	{
		return formatter.format( calendar.getTime() );
	}
	
	public static long nowTime()
	{
		return calendar.getTime().getTime();
	}
}
